package com.sce.core.controller;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class SecureController {

	@ApiOperation(value = "value",notes = "notes",nickname = "nickname",consumes = "consumes")
	@RequestMapping(method = RequestMethod.POST,value="sayHello")
	public String sayHello(@ApiParam(name="address",required=false,example="田林路",value="address") @RequestParam(required = false) String address) {
		return "getToken is ok!";
	}
	@ApiOperation(value = "value",notes = "hello",nickname = "hello",consumes = "hello")
	@RequestMapping(method = RequestMethod.POST,value="hello")
	public String hello(@ApiParam(name="address",required=false,example="田林路",value="address") @RequestParam(required = false) String address) {
		return "getToken is ok!";
	}

}
